VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "comdlg32.ocx"
Object = "{3B7C8863-D78F-101B-B9B5-04021C009402}#1.2#0"; "RICHTX32.OCX"
Object = "{B3FB64BF-91F9-11D7-A482-0008A14158BC}#2.22#0"; "itgcontrols.ocx"
Begin VB.Form frmMaintFixedAssetsDep 
   BackColor       =   &H00F7D9C2&
   BorderStyle     =   0  'None
   Caption         =   "Form1"
   ClientHeight    =   9705
   ClientLeft      =   0
   ClientTop       =   0
   ClientWidth     =   11940
   BeginProperty Font 
      Name            =   "Tahoma"
      Size            =   8.25
      Charset         =   0
      Weight          =   400
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   KeyPreview      =   -1  'True
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MDIChild        =   -1  'True
   ScaleHeight     =   9705
   ScaleWidth      =   11940
   ShowInTaskbar   =   0   'False
   Tag             =   "&H00F7D9C2&"
   Begin MSComctlLib.StatusBar sbRS 
      Align           =   2  'Align Bottom
      Height          =   255
      Left            =   0
      TabIndex        =   0
      Top             =   9450
      Width           =   11940
      _ExtentX        =   21061
      _ExtentY        =   450
      _Version        =   393216
      BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628} 
         NumPanels       =   2
         BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Object.Width           =   3528
            MinWidth        =   3528
         EndProperty
         BeginProperty Panel2 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
         EndProperty
      EndProperty
   End
   Begin ITGControls.ITGTab SSTab1 
      Height          =   8220
      Left            =   0
      TabIndex        =   67
      Top             =   1020
      Width           =   10530
      _ExtentX        =   18574
      _ExtentY        =   14499
      TabCount        =   2
      TabCaption(0)   =   "               Main               "
      TabContCtrlCnt(0)=   1
      Tab(0)ContCtrlCap(1)=   "ComunionFrames2"
      TabCaption(1)   =   "               List               "
      TabContCtrlCnt(1)=   1
      Tab(1)ContCtrlCap(1)=   "dtgList"
      TabTheme        =   2
      ActiveTabBackStartColor=   16250865
      ActiveTabBackEndColor=   16243138
      InActiveTabBackStartColor=   16243138
      InActiveTabBackEndColor=   16243138
      BeginProperty ActiveTabFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "Tahoma"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      BeginProperty InActiveTabFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "Tahoma"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      OuterBorderColor=   4210752
      TopLeftInnerBorderColor=   4210752
      BottomRightInnerBorderColor=   4210752
      DisabledTabBackColor=   16243138
      DisabledTabForeColor=   -2147483630
      Begin MSDataGridLib.DataGrid dtgList 
         Height          =   7065
         Left            =   -75000
         TabIndex        =   66
         Top             =   315
         Width           =   10530
         _ExtentX        =   18574
         _ExtentY        =   12462
         _Version        =   393216
         AllowUpdate     =   0   'False
         AllowArrows     =   -1  'True
         Appearance      =   0
         HeadLines       =   1
         RowHeight       =   15
         TabAction       =   2
         FormatLocked    =   -1  'True
         BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "Tahoma"
            Size            =   8.25
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "Tahoma"
            Size            =   8.25
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ColumnCount     =   6
         BeginProperty Column00 
            DataField       =   "cAssetNo"
            Caption         =   "Asset ID"
            BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
               Type            =   0
               Format          =   "M/d/yyyy"
               HaveTrueFalseNull=   0
               FirstDayOfWeek  =   0
               FirstWeekOfYear =   0
               LCID            =   1033
               SubFormatType   =   0
            EndProperty
         EndProperty
         BeginProperty Column01 
            DataField       =   "cDesc"
            Caption         =   "Description"
            BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
               Type            =   0
               Format          =   ""
               HaveTrueFalseNull=   0
               FirstDayOfWeek  =   0
               FirstWeekOfYear =   0
               LCID            =   1033
               SubFormatType   =   0
            EndProperty
         EndProperty
         BeginProperty Column02 
            DataField       =   "dDate"
            Caption         =   "Date"
            BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
               Type            =   1
               Format          =   "MM/dd/yyyy"
               HaveTrueFalseNull=   0
               FirstDayOfWeek  =   0
               FirstWeekOfYear =   0
               LCID            =   1033
               SubFormatType   =   3
            EndProperty
         EndProperty
         BeginProperty Column03 
            DataField       =   "cType"
            Caption         =   "Type"
            BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
               Type            =   0
               Format          =   ""
               HaveTrueFalseNull=   0
               FirstDayOfWeek  =   0
               FirstWeekOfYear =   0
               LCID            =   1033
               SubFormatType   =   0
            EndProperty
         EndProperty
         BeginProperty Column04 
            DataField       =   "cAcctNo"
            Caption         =   "Account No."
            BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
               Type            =   0
               Format          =   "#,##0.00"
               HaveTrueFalseNull=   0
               FirstDayOfWeek  =   0
               FirstWeekOfYear =   0
               LCID            =   1033
               SubFormatType   =   0
            EndProperty
         EndProperty
         BeginProperty Column05 
            DataField       =   "cDepreAcct"
            Caption         =   "Dep. Acct No."
            BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
               Type            =   0
               Format          =   ""
               HaveTrueFalseNull=   0
               FirstDayOfWeek  =   0
               FirstWeekOfYear =   0
               LCID            =   1033
               SubFormatType   =   0
            EndProperty
         EndProperty
         SplitCount      =   1
         BeginProperty Split0 
            AllowRowSizing  =   0   'False
            BeginProperty Column00 
               ColumnAllowSizing=   -1  'True
               Locked          =   -1  'True
               ColumnWidth     =   1395.213
            EndProperty
            BeginProperty Column01 
               ColumnWidth     =   3690.142
            EndProperty
            BeginProperty Column02 
               Locked          =   -1  'True
               ColumnWidth     =   1200.189
            EndProperty
            BeginProperty Column03 
               Locked          =   -1  'True
               ColumnWidth     =   1470.047
            EndProperty
            BeginProperty Column04 
               Locked          =   -1  'True
               ColumnWidth     =   1110.047
            EndProperty
            BeginProperty Column05 
               ColumnWidth     =   1184.882
            EndProperty
         EndProperty
      End
      Begin ITGControls.ComunionFrames ComunionFrames2 
         Height          =   7665
         Left            =   0
         Top             =   315
         Width           =   10530
         _ExtentX        =   18574
         _ExtentY        =   13520
         FrameColor      =   4210752
         BackColor       =   16243138
         FillColor       =   16243138
         RoundedCorner   =   0   'False
         Caption         =   "Information"
         Alignment       =   0
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "Tahoma"
            Size            =   8.25
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ThemeColor      =   5
         ColorFrom       =   16243138
         ColorTo         =   16250865
         Begin VB.OptionButton optVehicleMaintDate 
            BackColor       =   &H00F7D9C2&
            Height          =   255
            Left            =   7350
            TabIndex        =   32
            TabStop         =   0   'False
            Top             =   5745
            Width           =   195
         End
         Begin VB.OptionButton optVehicleMaintPeriod 
            BackColor       =   &H00F7D9C2&
            Height          =   255
            Left            =   7350
            TabIndex        =   34
            TabStop         =   0   'False
            Top             =   6165
            Width           =   195
         End
         Begin VB.OptionButton optVehicleMaintLR 
            BackColor       =   &H00F7D9C2&
            Height          =   255
            Left            =   7350
            TabIndex        =   36
            TabStop         =   0   'False
            Top             =   6585
            Width           =   195
         End
         Begin VB.ComboBox cboVehicleMaintType 
            Appearance      =   0  'Flat
            BackColor       =   &H00FFFFFF&
            Height          =   315
            ItemData        =   "frmMaintFixedAssetsDep.frx":0000
            Left            =   8775
            List            =   "frmMaintFixedAssetsDep.frx":000D
            Style           =   2  'Dropdown List
            TabIndex        =   31
            Top             =   5295
            Width           =   1395
         End
         Begin VB.CommandButton cmdPickAsset 
            Height          =   315
            Left            =   3150
            Picture         =   "frmMaintFixedAssetsDep.frx":0035
            Style           =   1  'Graphical
            TabIndex        =   21
            Top             =   3450
            Width           =   315
         End
         Begin VB.CommandButton cmdPickDepAcct 
            Height          =   300
            Left            =   3150
            Picture         =   "frmMaintFixedAssetsDep.frx":017F
            Style           =   1  'Graphical
            TabIndex        =   15
            Top             =   2820
            Width           =   315
         End
         Begin VB.Timer Timer1 
            Interval        =   300
            Left            =   90
            Top             =   4665
         End
         Begin VB.CommandButton cmdPickAcct 
            Height          =   300
            Left            =   3150
            Picture         =   "frmMaintFixedAssetsDep.frx":02C9
            Style           =   1  'Graphical
            TabIndex        =   12
            Top             =   2505
            Width           =   315
         End
         Begin VB.CommandButton cmdPickExpAcct 
            Height          =   300
            Left            =   3150
            Picture         =   "frmMaintFixedAssetsDep.frx":0413
            Style           =   1  'Graphical
            TabIndex        =   18
            Top             =   3135
            Width           =   315
         End
         Begin VB.ComboBox cboType 
            Appearance      =   0  'Flat
            BackColor       =   &H00FFFFFF&
            Height          =   315
            ItemData        =   "frmMaintFixedAssetsDep.frx":055D
            Left            =   8430
            List            =   "frmMaintFixedAssetsDep.frx":0570
            Style           =   2  'Dropdown List
            TabIndex        =   3
            Top             =   495
            Width           =   1485
         End
         Begin VB.CommandButton cmdPickEmpCode 
            Height          =   300
            Left            =   3150
            Picture         =   "frmMaintFixedAssetsDep.frx":05A4
            Style           =   1  'Graphical
            TabIndex        =   9
            Top             =   2190
            Width           =   315
         End
         Begin ITGControls.ITGDateBox dtbDate 
            Height          =   285
            Left            =   5475
            TabIndex        =   2
            Top             =   495
            Width           =   1455
            _ExtentX        =   2566
            _ExtentY        =   503
            BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Text            =   ""
            SendKeysTab     =   -1  'True
         End
         Begin ITGControls.ITGTextBox txtAcctDesc 
            Height          =   285
            Left            =   3495
            TabIndex        =   13
            Top             =   2505
            Width           =   3555
            _ExtentX        =   6165
            _ExtentY        =   503
            BackColor       =   14737632
            LabelBackColor  =   16243138
            BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            AllCaps         =   -1  'True
            Label           =   ""
            BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            LabelWidth      =   0
            TextBoxWidth    =   3495
            Enabled         =   0   'False
         End
         Begin ITGControls.ITGTextBox txtAssetID 
            Height          =   285
            Left            =   105
            TabIndex        =   1
            Top             =   495
            Width           =   2955
            _ExtentX        =   5001
            _ExtentY        =   503
            SendKeysTab     =   -1  'True
            BackColor       =   14745599
            LabelBackColor  =   16243138
            BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            AllCaps         =   -1  'True
            Mandatory       =   -1  'True
            Label           =   "Asset ID"
            BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            TextBoxWidth    =   1395
            Required        =   -1  'True
         End
         Begin ITGControls.ITGTextBox txtAcctNo 
            Height          =   285
            Left            =   105
            TabIndex        =   11
            Top             =   2505
            Width           =   2985
            _ExtentX        =   5054
            _ExtentY        =   503
            SendKeysTab     =   -1  'True
            BackColor       =   14745599
            LabelBackColor  =   16243138
            BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            AllCaps         =   -1  'True
            Mandatory       =   -1  'True
            Label           =   "Account Number"
            BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            TextBoxWidth    =   1425
            Required        =   -1  'True
         End
         Begin MSComDlg.CommonDialog cd 
            Left            =   7590
            Top             =   2670
            _ExtentX        =   847
            _ExtentY        =   847
            _Version        =   393216
         End
         Begin RichTextLib.RichTextBox txtRemarks 
            Height          =   1095
            Left            =   7290
            TabIndex        =   23
            Top             =   3585
            Width           =   2910
            _ExtentX        =   5133
            _ExtentY        =   1931
            _Version        =   393217
            Enabled         =   -1  'True
            ScrollBars      =   3
            MaxLength       =   500
            Appearance      =   0
            TextRTF         =   $"frmMaintFixedAssetsDep.frx":06EE
         End
         Begin ITGControls.ITGTextBox txtDepAcctDesc 
            Height          =   285
            Left            =   3495
            TabIndex        =   16
            Top             =   2820
            Width           =   3555
            _ExtentX        =   6165
            _ExtentY        =   503
            BackColor       =   14737632
            LabelBackColor  =   16243138
            BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            AllCaps         =   -1  'True
            Label           =   ""
            BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            LabelWidth      =   0
            TextBoxWidth    =   3495
            Enabled         =   0   'False
         End
         Begin ITGControls.ITGTextBox txtDepAcctNo 
            Height          =   285
            Left            =   105
            TabIndex        =   14
            Top             =   2820
            Width           =   2985
            _ExtentX        =   5054
            _ExtentY        =   503
            SendKeysTab     =   -1  'True
            BackColor       =   14745599
            LabelBackColor  =   16243138
            BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            AllCaps         =   -1  'True
            Mandatory       =   -1  'True
            Label           =   "Depreciation Acct"
            BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            TextBoxWidth    =   1425
            Required        =   -1  'True
         End
         Begin ITGControls.ITGTextBox txtParentAssetDesc 
            Height          =   285
            Left            =   3495
            TabIndex        =   22
            Top             =   3450
            Width           =   3555
            _ExtentX        =   6165
            _ExtentY        =   503
            BackColor       =   14737632
            LabelBackColor  =   16243138
            BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            AllCaps         =   -1  'True
            Label           =   ""
            BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            LabelWidth      =   0
            TextBoxWidth    =   3495
            Enabled         =   0   'False
         End
         Begin ITGControls.ITGTextBox txtParentAsset 
            Height          =   285
            Left            =   105
            TabIndex        =   17
            Top             =   3135
            Width           =   2985
            _ExtentX        =   5054
            _ExtentY        =   503
            SendKeysTab     =   -1  'True
            BackColor       =   14745599
            LabelBackColor  =   16243138
            BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Mandatory       =   -1  'True
            Label           =   "Parent Asset"
            BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            TextBoxWidth    =   1425
            Required        =   -1  'True
         End
         Begin ITGControls.ITGTextBox txtExpAcctDesc 
            Height          =   285
            Left            =   3495
            TabIndex        =   19
            Top             =   3135
            Width           =   3555
            _ExtentX        =   6165
            _ExtentY        =   503
            BackColor       =   14737632
            LabelBackColor  =   16243138
            BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            AllCaps         =   -1  'True
            Label           =   ""
            BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            LabelWidth      =   0
            TextBoxWidth    =   3495
            Enabled         =   0   'False
         End
         Begin ITGControls.ITGTextBox txtExpAcctNo 
            Height          =   285
            Left            =   105
            TabIndex        =   20
            Top             =   3450
            Width           =   2985
            _ExtentX        =   5054
            _ExtentY        =   503
            SendKeysTab     =   -1  'True
            BackColor       =   14745599
            LabelBackColor  =   16243138
            BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            AllCaps         =   -1  'True
            Mandatory       =   -1  'True
            Label           =   "Expense Acct"
            BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            TextBoxWidth    =   1425
            Required        =   -1  'True
         End
         Begin ITGControls.ITGTextBox txtType 
            Height          =   285
            Left            =   8760
            TabIndex        =   70
            Tag             =   "cboType"
            Top             =   525
            Visible         =   0   'False
            Width           =   1155
            _ExtentX        =   1931
            _ExtentY        =   503
            BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Mandatory       =   -1  'True
            Label           =   ""
            BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            LabelWidth      =   0
            TextBoxWidth    =   1095
         End
         Begin ITGControls.ITGTextBox txtDescription 
            Height          =   285
            Left            =   105
            TabIndex        =   4
            Top             =   930
            Width           =   6945
            _ExtentX        =   12039
            _ExtentY        =   503
            SendKeysTab     =   -1  'True
            BackColor       =   14745599
            LabelBackColor  =   16243138
            BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Mandatory       =   -1  'True
            Label           =   "Description"
            BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            TextBoxWidth    =   5385
            Required        =   -1  'True
         End
         Begin ITGControls.ITGTextBox txtLocation 
            Height          =   285
            Left            =   105
            TabIndex        =   7
            Top             =   1875
            Width           =   6945
            _ExtentX        =   12039
            _ExtentY        =   503
            SendKeysTab     =   -1  'True
            LabelBackColor  =   16243138
            BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Label           =   "Location"
            BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            TextBoxWidth    =   5385
         End
         Begin ITGControls.ITGTextBox txtMarks 
            Height          =   285
            Left            =   105
            TabIndex        =   6
            Top             =   1560
            Width           =   6945
            _ExtentX        =   12039
            _ExtentY        =   503
            SendKeysTab     =   -1  'True
            BackColor       =   14745599
            LabelBackColor  =   16243138
            BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Mandatory       =   -1  'True
            Label           =   "Marks"
            BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            TextBoxWidth    =   5385
         End
         Begin ITGControls.ITGTextBox txtCategory 
            Height          =   285
            Left            =   105
            TabIndex        =   5
            Top             =   1245
            Width           =   6945
            _ExtentX        =   12039
            _ExtentY        =   503
            SendKeysTab     =   -1  'True
            BackColor       =   14745599
            LabelBackColor  =   16243138
            BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Mandatory       =   -1  'True
            Label           =   "Category"
            BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            TextBoxWidth    =   5385
            Required        =   -1  'True
         End
         Begin ITGControls.ITGTextBox txtEmpCode 
            Height          =   285
            Left            =   105
            TabIndex        =   8
            Top             =   2190
            Width           =   2985
            _ExtentX        =   5054
            _ExtentY        =   503
            SendKeysTab     =   -1  'True
            BackColor       =   14745599
            LabelBackColor  =   16243138
            BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            AllCaps         =   -1  'True
            Mandatory       =   -1  'True
            Label           =   "Accountable"
            BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            TextBoxWidth    =   1425
            Required        =   -1  'True
         End
         Begin ITGControls.ITGTextBox txtEmpName 
            Height          =   285
            Left            =   3495
            TabIndex        =   10
            Top             =   2190
            Width           =   3555
            _ExtentX        =   6165
            _ExtentY        =   503
            BackColor       =   14737632
            LabelBackColor  =   16243138
            BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            AllCaps         =   -1  'True
            Label           =   ""
            BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            LabelWidth      =   0
            TextBoxWidth    =   3495
            Enabled         =   0   'False
         End
         Begin ITGControls.ITGTab SSTab4 
            Height          =   2865
            Left            =   0
            TabIndex        =   74
            Top             =   4560
            Width           =   6855
            _ExtentX        =   12091
            _ExtentY        =   5054
            TabCount        =   2
            TabCaption(0)   =   "               Main               "
            TabContCtrlCnt(0)=   8
            Tab(0)ContCtrlCap(1)=   "txtTotal"
            Tab(0)ContCtrlCap(2)=   "txtTotalDep"
            Tab(0)ContCtrlCap(3)=   "txtMonthlyDep"
            Tab(0)ContCtrlCap(4)=   "txtBook"
            Tab(0)ContCtrlCap(5)=   "txtLife"
            Tab(0)ContCtrlCap(6)=   "txtDepartment"
            Tab(0)ContCtrlCap(7)=   "txtScrap"
            Tab(0)ContCtrlCap(8)=   "Label4"
            TabCaption(1)   =   "               List               "
            TabContCtrlCnt(1)=   1
            Tab(1)ContCtrlCap(1)=   "SSTab2"
            TabTheme        =   2
            ActiveTabBackStartColor=   16250865
            ActiveTabBackEndColor=   16243138
            InActiveTabBackStartColor=   16243138
            InActiveTabBackEndColor=   16243138
            BeginProperty ActiveTabFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   700
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            BeginProperty InActiveTabFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            OuterBorderColor=   4210752
            TopLeftInnerBorderColor=   4210752
            BottomRightInnerBorderColor=   4210752
            DisabledTabBackColor=   16243138
            DisabledTabForeColor=   -2147483630
            Begin ITGControls.ITGTab SSTab2 
               Height          =   2535
               Left            =   -75000
               TabIndex        =   76
               Top             =   330
               Width           =   6840
               _ExtentX        =   12065
               _ExtentY        =   4471
               TabCount        =   5
               TabCaption(0)   =   "     Equipment    "
               TabContCtrlCnt(0)=   8
               Tab(0)ContCtrlCap(1)=   "txtEQModel"
               Tab(0)ContCtrlCap(2)=   "txtEQSize"
               Tab(0)ContCtrlCap(3)=   "txtEQColor"
               Tab(0)ContCtrlCap(4)=   "txtEQBrand"
               Tab(0)ContCtrlCap(5)=   "dtbExpiry"
               Tab(0)ContCtrlCap(6)=   "cboEQType"
               Tab(0)ContCtrlCap(7)=   "ITGTextBox5"
               Tab(0)ContCtrlCap(8)=   "Label7"
               TabCaption(1)   =   "    Vehicle    "
               TabContCtrlCnt(1)=   11
               Tab(1)ContCtrlCap(1)=   "txtVehicleInsurance"
               Tab(1)ContCtrlCap(2)=   "dtbVehicleExpiry"
               Tab(1)ContCtrlCap(3)=   "txtVehicleEmpName"
               Tab(1)ContCtrlCap(4)=   "txtVehicleEmpCode"
               Tab(1)ContCtrlCap(5)=   "txtVehiclePlateNo"
               Tab(1)ContCtrlCap(6)=   "txtVehicleDesc"
               Tab(1)ContCtrlCap(7)=   "txtVehicleModel"
               Tab(1)ContCtrlCap(8)=   "txtVehicleMake"
               Tab(1)ContCtrlCap(9)=   "txtVehicleType"
               Tab(1)ContCtrlCap(10)=   "cmdPickVehicleEmpCode"
               Tab(1)ContCtrlCap(11)=   "Label5"
               TabCaption(2)   =   "    Vessel    "
               TabContCtrlCnt(2)=   5
               Tab(2)ContCtrlCap(1)=   "txtVesselName"
               Tab(2)ContCtrlCap(2)=   "txtVesselEngine"
               Tab(2)ContCtrlCap(3)=   "txtVesselNo"
               Tab(2)ContCtrlCap(4)=   "cboVesselType"
               Tab(2)ContCtrlCap(5)=   "ITGTextBox6"
               TabCaption(3)   =   "    Land Title    "
               TabContCtrlCnt(3)=   5
               Tab(3)ContCtrlCap(1)=   "ITGTextBox10"
               Tab(3)ContCtrlCap(2)=   "ITGTextBox9"
               Tab(3)ContCtrlCap(3)=   "ITGTextBox3"
               Tab(3)ContCtrlCap(4)=   "ITGTextBox2"
               Tab(3)ContCtrlCap(5)=   "ITGTextBox1"
               TabCaption(4)   =   "    Others    "
               TabContCtrlCnt(4)=   3
               Tab(4)ContCtrlCap(1)=   "ITGTextBox8"
               Tab(4)ContCtrlCap(2)=   "ITGTextBox7"
               Tab(4)ContCtrlCap(3)=   "ITGTextBox4"
               TabTheme        =   2
               ActiveTabBackStartColor=   16250865
               ActiveTabBackEndColor=   16243138
               InActiveTabBackStartColor=   16243138
               InActiveTabBackEndColor=   16243138
               BeginProperty ActiveTabFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                  Name            =   "Tahoma"
                  Size            =   8.25
                  Charset         =   0
                  Weight          =   700
                  Underline       =   0   'False
                  Italic          =   0   'False
                  Strikethrough   =   0   'False
               EndProperty
               BeginProperty InActiveTabFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                  Name            =   "Tahoma"
                  Size            =   8.25
                  Charset         =   0
                  Weight          =   400
                  Underline       =   0   'False
                  Italic          =   0   'False
                  Strikethrough   =   0   'False
               EndProperty
               OuterBorderColor=   4210752
               TopLeftInnerBorderColor=   4210752
               BottomRightInnerBorderColor=   4210752
               DisabledTabBackColor=   16243138
               DisabledTabForeColor=   -2147483630
               Begin ITGControls.ITGTextBox ITGTextBox8 
                  Height          =   285
                  Left            =   -74790
                  TabIndex        =   64
                  Top             =   780
                  Width           =   6180
                  _ExtentX        =   10689
                  _ExtentY        =   503
                  SendKeysTab     =   -1  'True
                  BackColor       =   14745599
                  LabelBackColor  =   16243138
                  BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  Mandatory       =   -1  'True
                  Label           =   "Description"
                  BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  TextBoxWidth    =   4620
               End
               Begin ITGControls.ITGTextBox ITGTextBox7 
                  Height          =   285
                  Left            =   -74790
                  TabIndex        =   65
                  Top             =   1080
                  Width           =   6180
                  _ExtentX        =   10689
                  _ExtentY        =   503
                  SendKeysTab     =   -1  'True
                  BackColor       =   14745599
                  LabelBackColor  =   16243138
                  BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  Mandatory       =   -1  'True
                  Label           =   "Remarks"
                  BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  TextBoxWidth    =   4620
               End
               Begin ITGControls.ITGTextBox ITGTextBox4 
                  Height          =   285
                  Left            =   -74790
                  TabIndex        =   63
                  Top             =   450
                  Width           =   3345
                  _ExtentX        =   5689
                  _ExtentY        =   503
                  SendKeysTab     =   -1  'True
                  BackColor       =   14745599
                  LabelBackColor  =   16243138
                  BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  Mandatory       =   -1  'True
                  Label           =   "Reference No."
                  BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  TextBoxWidth    =   1785
               End
               Begin ITGControls.ITGTextBox ITGTextBox10 
                  Height          =   285
                  Left            =   -74760
                  TabIndex        =   62
                  Top             =   1395
                  Width           =   3180
                  _ExtentX        =   5398
                  _ExtentY        =   503
                  SendKeysTab     =   -1  'True
                  BackColor       =   14745599
                  LabelBackColor  =   16243138
                  BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  Mandatory       =   -1  'True
                  Label           =   "Land Area"
                  BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  TextBoxWidth    =   1620
               End
               Begin ITGControls.ITGTextBox ITGTextBox9 
                  Height          =   285
                  Left            =   -71460
                  TabIndex        =   61
                  Top             =   1080
                  Width           =   2880
                  _ExtentX        =   4868
                  _ExtentY        =   503
                  SendKeysTab     =   -1  'True
                  BackColor       =   14745599
                  LabelBackColor  =   16243138
                  BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  Mandatory       =   -1  'True
                  Label           =   "Width"
                  BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  LabelWidth      =   1200
                  TextBoxWidth    =   1620
               End
               Begin ITGControls.ITGTextBox ITGTextBox3 
                  Height          =   285
                  Left            =   -74760
                  TabIndex        =   59
                  Top             =   765
                  Width           =   6180
                  _ExtentX        =   10689
                  _ExtentY        =   503
                  SendKeysTab     =   -1  'True
                  BackColor       =   14745599
                  LabelBackColor  =   16243138
                  BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  Mandatory       =   -1  'True
                  Label           =   "Location"
                  BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  TextBoxWidth    =   4620
               End
               Begin ITGControls.ITGTextBox ITGTextBox2 
                  Height          =   285
                  Left            =   -74760
                  TabIndex        =   60
                  Top             =   1080
                  Width           =   3180
                  _ExtentX        =   5398
                  _ExtentY        =   503
                  SendKeysTab     =   -1  'True
                  BackColor       =   14745599
                  LabelBackColor  =   16243138
                  BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  Mandatory       =   -1  'True
                  Label           =   "Length"
                  BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  TextBoxWidth    =   1620
               End
               Begin ITGControls.ITGTextBox ITGTextBox1 
                  Height          =   285
                  Left            =   -74760
                  TabIndex        =   58
                  Top             =   450
                  Width           =   3195
                  _ExtentX        =   5424
                  _ExtentY        =   503
                  SendKeysTab     =   -1  'True
                  BackColor       =   14745599
                  LabelBackColor  =   16243138
                  BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  Mandatory       =   -1  'True
                  Label           =   "LRA Title No."
                  BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  TextBoxWidth    =   1635
               End
               Begin ITGControls.ITGTextBox txtVesselName 
                  Height          =   285
                  Left            =   -74700
                  TabIndex        =   56
                  Top             =   855
                  Width           =   6180
                  _ExtentX        =   10689
                  _ExtentY        =   503
                  SendKeysTab     =   -1  'True
                  BackColor       =   14745599
                  LabelBackColor  =   16243138
                  BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  Mandatory       =   -1  'True
                  Label           =   "Vessel Name"
                  BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  TextBoxWidth    =   4620
               End
               Begin ITGControls.ITGTextBox txtVesselEngine 
                  Height          =   285
                  Left            =   -74700
                  TabIndex        =   57
                  Top             =   1170
                  Width           =   6180
                  _ExtentX        =   10689
                  _ExtentY        =   503
                  SendKeysTab     =   -1  'True
                  BackColor       =   14745599
                  LabelBackColor  =   16243138
                  BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  Mandatory       =   -1  'True
                  Label           =   "Vessel Engine"
                  BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  TextBoxWidth    =   4620
               End
               Begin ITGControls.ITGTextBox txtVesselNo 
                  Height          =   285
                  Left            =   -74700
                  TabIndex        =   54
                  Top             =   540
                  Width           =   3345
                  _ExtentX        =   5689
                  _ExtentY        =   503
                  SendKeysTab     =   -1  'True
                  BackColor       =   14745599
                  LabelBackColor  =   16243138
                  BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  Mandatory       =   -1  'True
                  Label           =   "Vessel No."
                  BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  TextBoxWidth    =   1785
               End
               Begin VB.ComboBox cboVesselType 
                  Appearance      =   0  'Flat
                  BackColor       =   &H00FFFFFF&
                  Height          =   315
                  ItemData        =   "frmMaintFixedAssetsDep.frx":0769
                  Left            =   -70185
                  List            =   "frmMaintFixedAssetsDep.frx":0776
                  Style           =   2  'Dropdown List
                  TabIndex        =   55
                  Top             =   510
                  Width           =   1665
               End
               Begin ITGControls.ITGTextBox txtVehicleInsurance 
                  Height          =   285
                  Left            =   -74730
                  TabIndex        =   52
                  Top             =   1695
                  Width           =   3480
                  _ExtentX        =   5927
                  _ExtentY        =   503
                  SendKeysTab     =   -1  'True
                  BackColor       =   14745599
                  LabelBackColor  =   16243138
                  BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  Mandatory       =   -1  'True
                  Label           =   "Insurance"
                  BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  LabelWidth      =   1200
                  TextBoxWidth    =   2220
               End
               Begin ITGControls.ITGDateBox dtbVehicleExpiry 
                  Height          =   285
                  Left            =   -69930
                  TabIndex        =   53
                  Top             =   1695
                  Width           =   1485
                  _ExtentX        =   2619
                  _ExtentY        =   503
                  BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  Text            =   ""
                  SendKeysTab     =   -1  'True
               End
               Begin ITGControls.ITGTextBox txtVehicleEmpName 
                  Height          =   285
                  Left            =   -71640
                  TabIndex        =   51
                  Top             =   1380
                  Width           =   3210
                  _ExtentX        =   5556
                  _ExtentY        =   503
                  BackColor       =   14737632
                  LabelBackColor  =   16243138
                  BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  AllCaps         =   -1  'True
                  Label           =   ""
                  BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  LabelWidth      =   0
                  TextBoxWidth    =   3150
                  Enabled         =   0   'False
               End
               Begin ITGControls.ITGTextBox txtVehicleEmpCode 
                  Height          =   285
                  Left            =   -74730
                  TabIndex        =   49
                  Top             =   1380
                  Width           =   2700
                  _ExtentX        =   4551
                  _ExtentY        =   503
                  SendKeysTab     =   -1  'True
                  BackColor       =   14745599
                  LabelBackColor  =   16243138
                  BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  Mandatory       =   -1  'True
                  Label           =   "Driver"
                  BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  LabelWidth      =   1200
                  TextBoxWidth    =   1440
               End
               Begin ITGControls.ITGTextBox txtVehiclePlateNo 
                  Height          =   285
                  Left            =   -71445
                  TabIndex        =   45
                  Top             =   435
                  Width           =   3015
                  _ExtentX        =   5106
                  _ExtentY        =   503
                  SendKeysTab     =   -1  'True
                  BackColor       =   14745599
                  LabelBackColor  =   16243138
                  BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  Mandatory       =   -1  'True
                  Label           =   "Plate No."
                  BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  LabelWidth      =   1200
                  TextBoxWidth    =   1755
               End
               Begin ITGControls.ITGTextBox txtVehicleDesc 
                  Height          =   285
                  Left            =   -74730
                  TabIndex        =   48
                  Top             =   1065
                  Width           =   6300
                  _ExtentX        =   10901
                  _ExtentY        =   503
                  SendKeysTab     =   -1  'True
                  BackColor       =   14745599
                  LabelBackColor  =   16243138
                  BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  Mandatory       =   -1  'True
                  Label           =   "Description"
                  BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  LabelWidth      =   1200
                  TextBoxWidth    =   5040
               End
               Begin ITGControls.ITGTextBox txtVehicleModel 
                  Height          =   285
                  Left            =   -71445
                  TabIndex        =   47
                  Top             =   750
                  Width           =   3015
                  _ExtentX        =   5106
                  _ExtentY        =   503
                  SendKeysTab     =   -1  'True
                  BackColor       =   14745599
                  LabelBackColor  =   16243138
                  BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  Mandatory       =   -1  'True
                  Label           =   "Model"
                  BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  LabelWidth      =   1200
                  TextBoxWidth    =   1755
               End
               Begin ITGControls.ITGTextBox txtVehicleMake 
                  Height          =   285
                  Left            =   -74730
                  TabIndex        =   46
                  Top             =   750
                  Width           =   2925
                  _ExtentX        =   4948
                  _ExtentY        =   503
                  SendKeysTab     =   -1  'True
                  LabelBackColor  =   16243138
                  BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  Label           =   "Make"
                  BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  LabelWidth      =   1200
                  TextBoxWidth    =   1665
               End
               Begin ITGControls.ITGTextBox txtVehicleType 
                  Height          =   285
                  Left            =   -74730
                  TabIndex        =   44
                  Top             =   435
                  Width           =   2925
                  _ExtentX        =   4948
                  _ExtentY        =   503
                  SendKeysTab     =   -1  'True
                  BackColor       =   14745599
                  LabelBackColor  =   16243138
                  BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  Mandatory       =   -1  'True
                  Label           =   "Vehicle Type"
                  BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  LabelWidth      =   1200
                  TextBoxWidth    =   1665
               End
               Begin VB.CommandButton cmdPickVehicleEmpCode 
                  Height          =   300
                  Left            =   -72000
                  Picture         =   "frmMaintFixedAssetsDep.frx":079E
                  Style           =   1  'Graphical
                  TabIndex        =   50
                  Top             =   1380
                  Width           =   345
               End
               Begin ITGControls.ITGTextBox txtEQModel 
                  Height          =   285
                  Left            =   300
                  TabIndex        =   41
                  Top             =   1110
                  Width           =   3165
                  _ExtentX        =   5371
                  _ExtentY        =   503
                  SendKeysTab     =   -1  'True
                  BackColor       =   14745599
                  LabelBackColor  =   16243138
                  BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  Mandatory       =   -1  'True
                  Label           =   "Model"
                  BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  TextBoxWidth    =   1605
               End
               Begin ITGControls.ITGTextBox txtEQSize 
                  Height          =   285
                  Left            =   3795
                  TabIndex        =   40
                  Top             =   795
                  Width           =   2670
                  _ExtentX        =   4498
                  _ExtentY        =   503
                  SendKeysTab     =   -1  'True
                  LabelBackColor  =   16243138
                  BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  Label           =   "Size"
                  BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  LabelWidth      =   1000
                  TextBoxWidth    =   1610
               End
               Begin ITGControls.ITGTextBox txtEQColor 
                  Height          =   285
                  Left            =   285
                  TabIndex        =   39
                  Top             =   780
                  Width           =   3165
                  _ExtentX        =   5371
                  _ExtentY        =   503
                  SendKeysTab     =   -1  'True
                  BackColor       =   14745599
                  LabelBackColor  =   16243138
                  BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  Mandatory       =   -1  'True
                  Label           =   "Color"
                  BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  TextBoxWidth    =   1605
               End
               Begin ITGControls.ITGTextBox txtEQBrand 
                  Height          =   285
                  Left            =   300
                  TabIndex        =   38
                  Top             =   480
                  Width           =   6165
                  _ExtentX        =   10663
                  _ExtentY        =   503
                  SendKeysTab     =   -1  'True
                  BackColor       =   14745599
                  LabelBackColor  =   16243138
                  BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  Mandatory       =   -1  'True
                  Label           =   "Brand"
                  BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  TextBoxWidth    =   4605
               End
               Begin ITGControls.ITGDateBox dtbExpiry 
                  Height          =   285
                  Left            =   1830
                  TabIndex        =   43
                  Top             =   1440
                  Width           =   1635
                  _ExtentX        =   2884
                  _ExtentY        =   503
                  BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  Text            =   ""
                  SendKeysTab     =   -1  'True
                  Mandatory       =   -1  'True
               End
               Begin VB.ComboBox cboEQType 
                  Appearance      =   0  'Flat
                  BackColor       =   &H00FFFFFF&
                  Height          =   315
                  ItemData        =   "frmMaintFixedAssetsDep.frx":08E8
                  Left            =   4830
                  List            =   "frmMaintFixedAssetsDep.frx":08F5
                  Style           =   2  'Dropdown List
                  TabIndex        =   42
                  Top             =   1110
                  Width           =   1635
               End
               Begin ITGControls.ITGTextBox ITGTextBox6 
                  Height          =   285
                  Left            =   -71175
                  TabIndex        =   78
                  Top             =   525
                  Width           =   2670
                  _ExtentX        =   4498
                  _ExtentY        =   503
                  SendKeysTab     =   -1  'True
                  LabelBackColor  =   16243138
                  BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  AllCaps         =   -1  'True
                  Label           =   "Type"
                  BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  LabelWidth      =   1000
                  TextBoxWidth    =   1610
               End
               Begin ITGControls.ITGTextBox ITGTextBox5 
                  Height          =   285
                  Left            =   3795
                  TabIndex        =   77
                  Top             =   1110
                  Width           =   2670
                  _ExtentX        =   4498
                  _ExtentY        =   503
                  SendKeysTab     =   -1  'True
                  LabelBackColor  =   16243138
                  BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  AllCaps         =   -1  'True
                  Label           =   "Type"
                  BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                     Name            =   "Tahoma"
                     Size            =   8.25
                     Charset         =   0
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  LabelWidth      =   1000
                  TextBoxWidth    =   1610
               End
               Begin VB.Label Label7 
                  AutoSize        =   -1  'True
                  BackStyle       =   0  'Transparent
                  Caption         =   "Expiry Date"
                  Height          =   195
                  Left            =   330
                  TabIndex        =   81
                  Top             =   1470
                  Width           =   840
               End
               Begin VB.Label Label5 
                  AutoSize        =   -1  'True
                  BackStyle       =   0  'Transparent
                  Caption         =   "Expiry Date"
                  Height          =   195
                  Left            =   -70920
                  TabIndex        =   80
                  Top             =   1740
                  Width           =   840
               End
            End
            Begin ITGControls.ITGTextBox txtTotal 
               Height          =   285
               Left            =   3300
               TabIndex        =   25
               Top             =   630
               Width           =   3255
               _ExtentX        =   5530
               _ExtentY        =   503
               SendKeysTab     =   -1  'True
               LabelBackColor  =   16243138
               BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                  Name            =   "Tahoma"
                  Size            =   8.25
                  Charset         =   0
                  Weight          =   400
                  Underline       =   0   'False
                  Italic          =   0   'False
                  Strikethrough   =   0   'False
               EndProperty
               Text            =   "0"
               DataType        =   1
               DecimalPlace    =   2
               Label           =   "Total Value"
               BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                  Name            =   "Tahoma"
                  Size            =   8.25
                  Charset         =   0
                  Weight          =   400
                  Underline       =   0   'False
                  Italic          =   0   'False
                  Strikethrough   =   0   'False
               EndProperty
               LabelWidth      =   1800
               TextBoxWidth    =   1395
            End
            Begin ITGControls.ITGTextBox txtTotalDep 
               Height          =   285
               Left            =   3300
               TabIndex        =   29
               Top             =   1260
               Width           =   3255
               _ExtentX        =   5530
               _ExtentY        =   503
               SendKeysTab     =   -1  'True
               LabelBackColor  =   16243138
               BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                  Name            =   "Tahoma"
                  Size            =   8.25
                  Charset         =   0
                  Weight          =   400
                  Underline       =   0   'False
                  Italic          =   0   'False
                  Strikethrough   =   0   'False
               EndProperty
               Text            =   "0"
               DataType        =   1
               DecimalPlace    =   2
               Label           =   "Total Depreciation"
               BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                  Name            =   "Tahoma"
                  Size            =   8.25
                  Charset         =   0
                  Weight          =   400
                  Underline       =   0   'False
                  Italic          =   0   'False
                  Strikethrough   =   0   'False
               EndProperty
               LabelWidth      =   1800
               TextBoxWidth    =   1395
            End
            Begin ITGControls.ITGTextBox txtMonthlyDep 
               Height          =   285
               Left            =   3300
               TabIndex        =   27
               Top             =   945
               Width           =   3255
               _ExtentX        =   5530
               _ExtentY        =   503
               SendKeysTab     =   -1  'True
               LabelBackColor  =   16243138
               BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                  Name            =   "Tahoma"
                  Size            =   8.25
                  Charset         =   0
                  Weight          =   400
                  Underline       =   0   'False
                  Italic          =   0   'False
                  Strikethrough   =   0   'False
               EndProperty
               Text            =   "0"
               DataType        =   1
               DecimalPlace    =   2
               Label           =   "Monthly Depreciation"
               BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                  Name            =   "Tahoma"
                  Size            =   8.25
                  Charset         =   0
                  Weight          =   400
                  Underline       =   0   'False
                  Italic          =   0   'False
                  Strikethrough   =   0   'False
               EndProperty
               LabelWidth      =   1800
               TextBoxWidth    =   1395
            End
            Begin ITGControls.ITGTextBox txtBook 
               Height          =   285
               Left            =   3300
               TabIndex        =   30
               Top             =   1575
               Width           =   3255
               _ExtentX        =   5530
               _ExtentY        =   503
               SendKeysTab     =   -1  'True
               LabelBackColor  =   16243138
               BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                  Name            =   "Tahoma"
                  Size            =   8.25
                  Charset         =   0
                  Weight          =   400
                  Underline       =   0   'False
                  Italic          =   0   'False
                  Strikethrough   =   0   'False
               EndProperty
               Text            =   "0"
               DataType        =   1
               DecimalPlace    =   2
               Label           =   "Book Value"
               BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                  Name            =   "Tahoma"
                  Size            =   8.25
                  Charset         =   0
                  Weight          =   400
                  Underline       =   0   'False
                  Italic          =   0   'False
                  Strikethrough   =   0   'False
               EndProperty
               LabelWidth      =   1800
               TextBoxWidth    =   1395
            End
            Begin ITGControls.ITGTextBox txtLife 
               Height          =   285
               Left            =   165
               TabIndex        =   26
               Top             =   945
               Width           =   2205
               _ExtentX        =   3678
               _ExtentY        =   503
               SendKeysTab     =   -1  'True
               LabelBackColor  =   16243138
               BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                  Name            =   "Tahoma"
                  Size            =   8.25
                  Charset         =   0
                  Weight          =   400
                  Underline       =   0   'False
                  Italic          =   0   'False
                  Strikethrough   =   0   'False
               EndProperty
               Text            =   "0"
               DataType        =   1
               Label           =   "Working Life"
               BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                  Name            =   "Tahoma"
                  Size            =   8.25
                  Charset         =   0
                  Weight          =   400
                  Underline       =   0   'False
                  Italic          =   0   'False
                  Strikethrough   =   0   'False
               EndProperty
               LabelWidth      =   1400
               TextBoxWidth    =   745
            End
            Begin ITGControls.ITGTextBox txtDepartment 
               Height          =   285
               Left            =   165
               TabIndex        =   24
               Top             =   630
               Width           =   2850
               _ExtentX        =   4815
               _ExtentY        =   503
               SendKeysTab     =   -1  'True
               BackColor       =   14745599
               LabelBackColor  =   16243138
               BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                  Name            =   "Tahoma"
                  Size            =   8.25
                  Charset         =   0
                  Weight          =   400
                  Underline       =   0   'False
                  Italic          =   0   'False
                  Strikethrough   =   0   'False
               EndProperty
               Mandatory       =   -1  'True
               Label           =   "Department"
               BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                  Name            =   "Tahoma"
                  Size            =   8.25
                  Charset         =   0
                  Weight          =   400
                  Underline       =   0   'False
                  Italic          =   0   'False
                  Strikethrough   =   0   'False
               EndProperty
               LabelWidth      =   1400
               TextBoxWidth    =   1390
            End
            Begin ITGControls.ITGTextBox txtScrap 
               Height          =   285
               Left            =   165
               TabIndex        =   28
               Top             =   1260
               Width           =   2850
               _ExtentX        =   4815
               _ExtentY        =   503
               SendKeysTab     =   -1  'True
               LabelBackColor  =   16243138
               BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                  Name            =   "Tahoma"
                  Size            =   8.25
                  Charset         =   0
                  Weight          =   400
                  Underline       =   0   'False
                  Italic          =   0   'False
                  Strikethrough   =   0   'False
               EndProperty
               Text            =   "0"
               DataType        =   1
               DecimalPlace    =   2
               Label           =   "Scrap Value"
               BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
                  Name            =   "Tahoma"
                  Size            =   8.25
                  Charset         =   0
                  Weight          =   400
                  Underline       =   0   'False
                  Italic          =   0   'False
                  Strikethrough   =   0   'False
               EndProperty
               LabelWidth      =   1400
               TextBoxWidth    =   1390
            End
            Begin VB.Label Label4 
               BackStyle       =   0  'Transparent
               Caption         =   "Months"
               Height          =   240
               Left            =   2475
               TabIndex        =   75
               Top             =   1035
               Width           =   765
            End
         End
         Begin ITGControls.ITGDateBox dtbVehicleMaintDate 
            Height          =   285
            Left            =   7710
            TabIndex        =   33
            TabStop         =   0   'False
            Top             =   5745
            Width           =   1395
            _ExtentX        =   2461
            _ExtentY        =   503
            BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Text            =   ""
            SendKeysTab     =   -1  'True
         End
         Begin ITGControls.ITGTextBox txtVehicleMaintPeriod 
            Height          =   285
            Left            =   7710
            TabIndex        =   35
            TabStop         =   0   'False
            Top             =   6165
            Width           =   1215
            _ExtentX        =   1931
            _ExtentY        =   503
            SendKeysTab     =   -1  'True
            LabelBackColor  =   16243138
            BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Text            =   "0"
            DataType        =   1
            Label           =   "every"
            BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            LabelWidth      =   650
            TextBoxWidth    =   505
         End
         Begin ITGControls.ITGTextBox txtVehicleMaintLR 
            Height          =   285
            Left            =   7710
            TabIndex        =   37
            TabStop         =   0   'False
            Top             =   6585
            Width           =   570
            _ExtentX        =   900
            _ExtentY        =   503
            SendKeysTab     =   -1  'True
            LabelBackColor  =   16243138
            BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Text            =   "0"
            DataType        =   1
            Label           =   ""
            BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            LabelWidth      =   0
            TextBoxWidth    =   510
         End
         Begin ITGControls.ITGTextBox txtVehicleMaintType 
            Height          =   285
            Left            =   8910
            TabIndex        =   79
            Tag             =   "cboType"
            Top             =   5325
            Visible         =   0   'False
            Width           =   1155
            _ExtentX        =   1931
            _ExtentY        =   503
            BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Mandatory       =   -1  'True
            Label           =   ""
            BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            LabelWidth      =   0
            TextBoxWidth    =   1095
         End
         Begin ITGControls.ITGCheckBox chkAmortized 
            Height          =   300
            Left            =   3600
            TabIndex        =   85
            Top             =   3840
            Width           =   1875
            _ExtentX        =   3307
            _ExtentY        =   529
            BackColor       =   16243138
            Caption         =   "Amortized Input Tax"
            BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
         End
         Begin ITGControls.ITGCheckBox chkDisposed 
            Height          =   300
            Left            =   3600
            TabIndex        =   86
            Top             =   4200
            Width           =   1035
            _ExtentX        =   1826
            _ExtentY        =   529
            BackColor       =   16243138
            Caption         =   "Disposed"
            BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
         End
         Begin ITGControls.ITGDateBox dtbDepreciationDate 
            Height          =   285
            Left            =   1695
            TabIndex        =   87
            Top             =   3840
            Width           =   1455
            _ExtentX        =   2566
            _ExtentY        =   503
            BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Text            =   ""
            SendKeysTab     =   -1  'True
         End
         Begin ITGControls.ITGDateBox dtbDisposalDate 
            Height          =   285
            Left            =   1695
            TabIndex        =   89
            Top             =   4200
            Width           =   1455
            _ExtentX        =   2566
            _ExtentY        =   503
            Enabled         =   0   'False
            BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Text            =   ""
            SendKeysTab     =   -1  'True
         End
         Begin VB.Label Label11 
            AutoSize        =   -1  'True
            BackStyle       =   0  'Transparent
            Caption         =   "Disposal Date"
            Height          =   195
            Left            =   120
            TabIndex        =   90
            Top             =   4245
            Width           =   975
         End
         Begin VB.Label Label6 
            AutoSize        =   -1  'True
            BackStyle       =   0  'Transparent
            Caption         =   "Depreciation Date"
            Height          =   195
            Left            =   120
            TabIndex        =   88
            Top             =   3885
            Width           =   1290
         End
         Begin VB.Label Label10 
            AutoSize        =   -1  'True
            BackStyle       =   0  'Transparent
            Caption         =   "Due for maintenance"
            BeginProperty Font 
               Name            =   "Tahoma"
               Size            =   8.25
               Charset         =   0
               Weight          =   700
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Height          =   195
            Left            =   7350
            TabIndex        =   84
            Top             =   4860
            Width           =   1770
         End
         Begin VB.Label Label9 
            AutoSize        =   -1  'True
            BackStyle       =   0  'Transparent
            Caption         =   "days after last repairt"
            Height          =   195
            Left            =   8415
            TabIndex        =   83
            Top             =   6630
            Width           =   1575
         End
         Begin VB.Label Label8 
            AutoSize        =   -1  'True
            BackStyle       =   0  'Transparent
            Caption         =   "Maintenance Type"
            Height          =   195
            Left            =   7320
            TabIndex        =   82
            Top             =   5325
            Width           =   1320
         End
         Begin VB.Label Label3 
            AutoSize        =   -1  'True
            BackStyle       =   0  'Transparent
            Caption         =   "Remarks"
            Height          =   195
            Left            =   7320
            TabIndex        =   73
            Top             =   3315
            Width           =   615
         End
         Begin VB.Label Label2 
            AutoSize        =   -1  'True
            BackStyle       =   0  'Transparent
            Caption         =   "Asset Type"
            Height          =   195
            Left            =   7380
            TabIndex        =   72
            Top             =   540
            Width           =   810
         End
         Begin VB.Label Label1 
            AutoSize        =   -1  'True
            BackStyle       =   0  'Transparent
            Caption         =   "Date"
            Height          =   195
            Left            =   4860
            TabIndex        =   71
            Top             =   540
            Width           =   345
         End
         Begin VB.Image iPhoto 
            Appearance      =   0  'Flat
            BorderStyle     =   1  'Fixed Single
            DataField       =   "iPhoto"
            Height          =   2160
            Left            =   7560
            Stretch         =   -1  'True
            Top             =   1020
            Width           =   2325
         End
      End
   End
   Begin VB.Label lblDetails 
      AutoSize        =   -1  'True
      BackColor       =   &H00F7D9C2&
      BackStyle       =   0  'Transparent
      Caption         =   "Category"
      ForeColor       =   &H00000000&
      Height          =   195
      Left            =   195
      TabIndex        =   69
      Top             =   570
      Visible         =   0   'False
      Width           =   675
   End
   Begin VB.Label lblHeader 
      AutoSize        =   -1  'True
      BackColor       =   &H00F7D9C2&
      BackStyle       =   0  'Transparent
      Caption         =   "Asset ID - Description"
      BeginProperty Font 
         Name            =   "Tahoma"
         Size            =   12
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00000000&
      Height          =   285
      Left            =   195
      TabIndex        =   68
      Top             =   210
      Width           =   2670
   End
   Begin VB.Shape Shape1 
      BorderColor     =   &H00404040&
      Height          =   975
      Left            =   0
      Top             =   0
      Width           =   9300
   End
   Begin VB.Image imgLogo 
      BorderStyle     =   1  'Fixed Single
      Height          =   930
      Left            =   9405
      Stretch         =   -1  'True
      Top             =   0
      Width           =   1125
   End
End
Attribute VB_Name = "frmMaintFixedAssetsDep"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'IT Group Inc. 2005.09.23

Option Explicit

'Object variables





'Recordset variables
Private WithEvents rsHeader As ADODB.Recordset
Attribute rsHeader.VB_VarHelpID = -1

'ADO Connection variables

Private connHeader As ADODB.Connection

'Form mode enumeration
Public Enum eAssetMode
    Normal
    AddNewEdit
    Find
End Enum
Public Mode As eAssetMode

'Other declaration
Public dtgName As String
Public sBit As String
Private vBM As Variant 'Recordset bookmark variable

Private sTempPath As String ' Path of the Picture : Temporary
Private stm As New ADODB.Stream

'Security Acess Level variables
Public lACNew As Boolean
Public lACEdit As Boolean
Public lACDelete As Boolean
Public lACPost As Boolean
Public lACCancel As Boolean
Public lACPrint As Boolean

Public Sub TBBrowseImage()
    
    ' Browse for picture then load on PictureBox
    cd.Filter = "Bitmap (*.bmp)|*.bmp| JPEG (*.jpg;*.jpeg)|*.jpg;*.jpeg| GIF (*.gif)|*.gif| All (*.bmp;*.jpg;*.jpeg;*.gif)|*.bmp;*.jpg;*.jpeg;*.gif"
    cd.FilterIndex = 4
    cd.FileName = ""
    cd.ShowOpen

    sTempPath = Trim$(cd.FileName)
    If (Trim(sTempPath) <> "") Then
        iPhoto.Picture = LoadPicture(sTempPath)
    Else
        iPhoto.Picture = Nothing
        Exit Sub
    End If

    If (iPhoto.Picture <> 0) Then
        stm.Type = adTypeBinary
        stm.Open
        stm.LoadFromFile sTempPath
        rsHeader!iPhoto = stm.Read
        stm.Close
        Set stm = Nothing
    Else
        rsHeader!iPhoto = Null
    End If

End Sub

Public Sub TBClearImage()
    iPhoto.Picture = Nothing
    rsHeader!iPhoto = Null
End Sub


Private Sub cboType_Click()
    txtType = Trim(cboType)
    If Mode <> AddNewEdit Then Exit Sub
    
    If Trim(cboType) = "Equipment" Then
        'ClearFAInfo "Equipment"
    ElseIf Trim(cboType) = "Vehicle" Then
        'ClearFAInfo "Vehicle"
    ElseIf Trim(cboType) = "Vessel" Then
        'ClearFAInfo "Vessel"
    End If
    EnableFATabs

End Sub

Private Sub cboType_KeyPress(KeyAscii As Integer)
    SendKeysTab KeyAscii
End Sub

Private Sub cboVehicleMaintType_Click()
    txtVehicleMaintType = Trim(cboVehicleMaintType)
    VehicleOption
    If Mode <> AddNewEdit Then Exit Sub
    If Trim(cboVehicleMaintType) = "by Date" Then
        dtbVehicleMaintDate.Enabled = True
        txtVehicleMaintPeriod.Locked = True
        txtVehicleMaintPeriod = Empty
        txtVehicleMaintLR.Locked = True
        txtVehicleMaintLR = Empty
    ElseIf Trim(cboVehicleMaintType) = "by Period" Then
        txtVehicleMaintPeriod.Locked = False
        dtbVehicleMaintDate.Enabled = False
        dtbVehicleMaintDate.Text = "__/__/____"
        txtVehicleMaintLR.Locked = True
        txtVehicleMaintLR = Empty
    ElseIf Trim(cboVehicleMaintType) = "by Last Repair" Then
        txtVehicleMaintLR.Locked = False
        dtbVehicleMaintDate.Enabled = False
        dtbVehicleMaintDate.Text = "__/__/____"
        txtVehicleMaintPeriod.Locked = True
        txtVehicleMaintPeriod = Empty
    End If
End Sub

Private Sub cboVehicleMaintType_KeyPress(KeyAscii As Integer)
    SendKeysTab KeyAscii
End Sub

Private Sub chkDisposed_Click()
    If Mode <> AddNewEdit Then Exit Sub
    If chkDisposed.Value = Checked Then
        dtbDisposalDate.Enabled = True
    Else
        dtbDisposalDate.Enabled = False
    End If
End Sub

Private Sub cmdPickAcct_Click()
    If lPickListActive Then Exit Sub
    sFilterString = Trim(txtAcctNo)
    frmITGPickList.mType = AssetAccounts
    frmITGPickList.Show vbModal
    txtAcctNo = frmITGPickList.mCode
    txtAcctDesc = frmITGPickList.mName
    If Trim(txtAcctDesc) <> "" Then SendKeys "{Tab}"
End Sub

Private Sub cmdPickAsset_Click()
    If lPickListActive Then Exit Sub
    frmITGPickList.mType = Asset
    frmITGPickList.Show vbModal
    txtParentAsset = frmITGPickList.mCode
    txtParentAssetDesc = frmITGPickList.mName
    If Trim(txtParentAssetDesc) <> "" Then SendKeys "{Tab}"
End Sub

Private Sub cmdPickDepAcct_Click()
    If lPickListActive Then Exit Sub
    sFilterString = Trim(txtDepAcctNo)
    frmITGPickList.mType = AssetAccounts
    frmITGPickList.Show vbModal
    txtDepAcctNo = frmITGPickList.mCode
    txtDepAcctDesc = frmITGPickList.mName
    If Trim(txtDepAcctDesc) <> "" Then SendKeys "{Tab}"
End Sub

Private Sub cmdPickEmpCode_Click()
    If lPickListActive Then Exit Sub
    frmITGPickList.mType = EmployeeList
    frmITGPickList.Show vbModal
    txtEmpCode = frmITGPickList.mCode
    If Trim(txtEmpName) <> "" Then SendKeys "{Tab}"
End Sub

Private Sub cmdPickExpAcct_Click()
    If lPickListActive Then Exit Sub
    sFilterString = Trim(txtExpAcctNo)
    frmITGPicker.zType = QAccounts
    frmITGPicker.Condition = "where cCompanyID = '" & COID & "'" 'added
    frmITGPicker.Show vbModal
    txtExpAcctNo = frmITGPicker.zCode
    txtExpAcctDesc = frmITGPicker.zName
    If Trim(txtExpAcctDesc) <> "" Then SendKeys "{Tab}"
End Sub

Private Sub cmdPickVehicleEmpCode_Click()
    If lPickListActive Then Exit Sub
    frmITGPicker.zType = QEmployee
    frmITGPicker.Show vbModal
    txtVehicleEmpCode = frmITGPicker.zCode
    txtVehicleEmpName = frmITGPicker.zName
    If Trim(txtVehicleEmpName) <> "" Then SendKeys "{Tab}"
End Sub

Private Sub dtgList_HeadClick(ByVal ColIndex As Integer)
    SortGrid dtgList, ColIndex, rsHeader
End Sub

Private Sub Form_KeyUp(KeyCode As Integer, Shift As Integer)
Dim iKey As Integer
    iKey = ToolbarIndex(KeyCode, Shift)
    If iKey <> 0 Then
        If ITGLedgerMain.tbrMain.Buttons(iKey).Enabled = True Then
            ToolbarFunction iKey
        End If
    End If
End Sub

'Set Your Object
Private Sub Form_Load()
        
    Set FrmName = Me
    FormSetup
    
    AcessBit Me, GetValueFrTable("AccessLevel", "SEC_ACCESSLEVEL", "RoleID = '" & SecUserRole & "' AND [Module] = 'MF13'")
    
    Set rsHeader = New ADODB.Recordset
    
    
    FormLocking True
    FormSearch True
    SearchObj True
    BitEnabled ITGLedgerMain, Me, ITGLedgerMain.tbrMain, lACNew, , , , , , , , , True, , , True
    BitVisible ITGLedgerMain.tbrMain, True
    ITGLedgerMain.tbrMain.Buttons("btnFind").ButtonMenus("btnFindP").Enabled = True

    Mode = Find
    txtAssetID.Locked = False
    imgLogo.Picture = ITGLedgerMain.Picture1.Picture
End Sub

Private Sub Form_Activate()
    TBBitReload
End Sub

Private Sub Form_Unload(Cancel As Integer)
On Error Resume Next
    If Mode = AddNewEdit Then
        MsgBox "Unable to close. You are in Add/New/Edit mode." & vbCr & _
            " Must Save or Undo", vbCritical, Me.Caption
        Cancel = True
        Exit Sub
    End If
    
    CloseMenuTab ITGLedgerMain
    
    BitEnabled ITGLedgerMain, Me, ITGLedgerMain.tbrMain, , , , , , , , , , True
    BitVisible ITGLedgerMain.tbrMain
    ITGLedgerMain.tbrMain.Buttons("btnFind").ButtonMenus("btnFindP").Enabled = False
    
    
    
    
    
    Set rsHeader = Nothing
    Set connHeader = Nothing
    
    Set frmMaintFixedAssets = Nothing

    lCloseWindow = True
    
'    'oForm(Me.Tag).Mode = 1
'    'oForm(Me.Tag).Tag = Me.Tag
End Sub

Public Sub TBNew()
    
    BitEnabled ITGLedgerMain, Me, ITGLedgerMain.tbrMain, , , , True, True, , , True, True, , , , True
    txtAssetID.BackColor = &HE0FFFF
    Mode = AddNewEdit
    
    If rsHeader.State <> adStateOpen Then
        OpenNewConnection connHeader
        OpenRecordsetWithCN rsHeader, "*", "ASSET", connHeader, "WHERE 1 = 0"
        SetDataSource
        SetDataField
    Else
        vBM = rsHeader.Bookmark
    End If
    
    rsHeader.AddNew
    rsHeader!cCompanyID = COID
    rsHeader!dDate = Date
    
    SSTab2.TabEnabled(0) = True
    SSTab2.TabEnabled(1) = False
    SSTab2.TabEnabled(2) = False
    SSTab2.TabEnabled(3) = False
    SSTab2.TabEnabled(4) = False
    
    rsHeader!cType = "Equipment"
    
    Set FrmName = Me
    FormLocking False
    ClrRequired &HC0&
    txtTotalDep.Locked = True
    txtBook.Locked = True
    SSTab1.ActiveTab = 0
    txtAssetID.SetFocus
    
    dtbDisposalDate.Enabled = False

End Sub

'Undo all changes to the recordset
Public Sub TBUndoAll()
On Error GoTo ErrorHandler

    Mode = Normal
    
    If rsHeader.Status = adRecNew Then TBUndoCurrent
    
    rsHeader.CancelBatch adAffectAll
    UnbindControls
    
    If rsHeader.RecordCount <> 0 Then rsHeader.Bookmark = vBM
    
    Set FrmName = Me
    FormLocking True
    
    If rsHeader.RecordCount <> 0 Then
        BitEnabled ITGLedgerMain, Me, ITGLedgerMain.tbrMain, lACNew, lACEdit, lACDelete, , , , , , , True, True, , True
    Else
        RSZero
        Mode = Find
    End If
    
    sbRS.Panels(2) = ""
    
    SetDataSource
    SetDataField

ErrorHandler:
    If err.Number = -2147217885 Then
        Resume Next
    ElseIf err.Number = -2147217842 Then 'Operation was cancelled. (Error returned by ITGDateBox)
        TBUndoAll
    End If

End Sub

Public Sub TBUndoCurrent()
On Error GoTo ErrorHandler

    If rsHeader.Status = adRecNew Then
        rsHeader.CancelUpdate
    Else: rsHeader.CancelBatch adAffectCurrent
    End If
   
    If rsHeader.RecordCount = 0 Then RSZero
    
ErrorHandler:
    If err.Number = -2147217885 Then
        Resume Next
    ElseIf err.Number = -2147217842 Then
        TBUndoCurrent
    End If
End Sub

Public Sub TBSave()
Dim OKUpdate As Boolean
On Error GoTo ErrHandler

    lBoolean = False
    If rsHeader.Status = adRecNew Then lBoolean = True
    
    If Not MandatoryOK Then Exit Sub
    
    OKUpdate = False
    cn.BeginTrans
    connHeader.BeginTrans
    
    rsHeader.UpdateBatch adAffectAll
    cn.CommitTrans
    connHeader.CommitTrans
    OKUpdate = True
    
    Set FrmName = Me
    FormLocking True
    BitEnabled ITGLedgerMain, Me, ITGLedgerMain.tbrMain, lACNew, lACEdit, lACDelete, , , , , , , True, True, , True
    Mode = Normal
    
    MsgBox "Record/s successfully saved.", vbInformation, msgTtl
        
    'Audit trail
    UpdateLogFile "Fixed Assets", Trim(txtAssetID), IIf(lBoolean, "Inserted", "Updated")
    
    lblHeader = rsHeader!cAssetNo & " - " & rsHeader!cDesc & ""
    lblDetails = rsHeader!cCategory & ""
    sbRS.Panels(2) = ""
    dtbDisposalDate.Enabled = False

ErrHandler:
    If err.Number = -2147217885 Then
        Resume Next
    ElseIf err.Number = -2147217864 Then
        OKUpdate = True
        cn.RollbackTrans
        connHeader.RollbackTrans
        MsgBox "Record cannot be updated. Some values may have been changed by other user/s since last read." & vbCr & _
                "Records will be automatically refreshed. All changes made to the record will be gone upon refresh.", vbInformation, msgTtl
        vBookMark = rsHeader.Bookmark
        UnbindControls
        rsHeader.Requery
        BitEnabled ITGLedgerMain, Me, ITGLedgerMain.tbrMain, lACNew, lACEdit, lACDelete, , , , , , , True, True, , True
        Mode = Normal
        If rsHeader.RecordCount <> 0 Then
            Set FrmName = Me
            FormLocking True
            SetDataField
            SetDataSource
            rsHeader.Bookmark = vBookMark
        Else: RSZero
        End If
    End If
    If Not OKUpdate Then
        MsgBox "Transaction update failed.", vbInformation, msgTtl
        cn.RollbackTrans
        connHeader.RollbackTrans
        ErrorLog err.Number, err.Description, Me.Name 'Error log
    End If
    
End Sub

Public Sub TBEdit()
    Mode = AddNewEdit
    BitEnabled ITGLedgerMain, Me, ITGLedgerMain.tbrMain, , , , , , , , True, True, , , , True
    Set FrmName = Me
    FormLocking False
    ClrRequired &HC0&
    txtAssetID.Locked = True
    txtTotalDep.Locked = True
    txtBook.Locked = True
    SSTab1.ActiveTab = 0
    dtbDate.SetFocus
    vBM = rsHeader.Bookmark
    EnableFATabs
    
End Sub

Public Sub TBDelete()
On Error GoTo ErrorHandler
    
    If rsHeader.RecordCount = 0 Then Exit Sub
    
    Dim rs As New ADODB.Recordset
    Set rs = Nothing
    rs.Open "SELECT A.cAssetNo FROM VFixedAsset A, Asset B WHERE A.cCompanyID = B.cCompanyID AND A.cAssetNo = '" & Trim(txtAssetID) & "' ", cn, adOpenStatic
    
    If rs.RecordCount <> 0 Then
        MsgBox "Unable to delete. Referenced by other transactions.", vbExclamation, "ALERT"
        rs.Close
        GoTo ErrorHandler
    End If
    
    If MsgBox("Are you sure you want to delete this record?", vbQuestion + vbYesNo, msgTtl) = vbNo Then Exit Sub
    
    'Audit trail
    UpdateLogFile "Fixed Assets", Trim(txtAssetID), "Deleted"

    rsHeader.Delete adAffectCurrent
    rsHeader.UpdateBatch adAffectAll
    
    TBPrevRec

    Mode = Normal
    
    If rsHeader.RecordCount = 0 Then
        RSZero
    End If

ErrorHandler:
    If err.Number = -2147217885 Then
        Resume Next
    End If

End Sub

Public Sub TBFind()
    Mode = Normal
    txtAssetID.Locked = True
    frmITGSearch.Show
End Sub

Public Sub TBFindPrimary()
Dim sTemp As String
If Mode = Find Then
    FormWaitShow App.Path & "\Transmit.avi", "Loading data . . ."
            
    OpenNewConnection connHeader
    
    Set rsHeader = Nothing
    Set rsHeader = New ADODB.Recordset
            
    sTemp = Trim$(GetSearchString)
    If sTemp = "ERROR" Then
        MsgBox "Only Allows A - Z, 0 - 9, '.', ',' and %(wildcard)", vbExclamation, ""
        BitEnabled ITGLedgerMain, Me, ITGLedgerMain.tbrMain, lACNew, , , , , , , , , True, , , True
        txtAssetID.Locked = False
        txtAssetID.SetFocus
        Exit Sub
    End If
    
    OpenRecordsetWithCN rsHeader, "*", "ASSET", connHeader, IIf(sTemp = "", "", " WHERE " & sTemp)
                  
    Set FrmName = Me
    FormLocking True
            
    If rsHeader.RecordCount = 0 Then
        FormWaitHide
        MsgBox "No matching record/s found.", vbInformation, "ComUnion Search"
        RSZero
        FormSearch True
        SearchObj True
        Mode = Find
        Exit Sub
    End If
    SetDataSource
    SetDataField
    txtAssetID.BackColor = &HE0FFFF
    Mode = Normal
    BitEnabled ITGLedgerMain, Me, ITGLedgerMain.tbrMain, lACNew, lACEdit, lACDelete, , , , , , , True, True, , True

    FormWaitHide
Else
    RSZero
    FormSearch True
    SearchObj True
    Mode = Find
End If

End Sub

Public Sub TBBitReload()
    BitVisible ITGLedgerMain.tbrMain
    ITGLedgerMain.tbrMain.Buttons("btnFind").ButtonMenus("btnFindP").Enabled = True
    BitReload ITGLedgerMain, Me, ITGLedgerMain.tbrMain, sBit
    Set FrmName = Me
End Sub

Public Sub TBCloseWindow()
    Unload Me
End Sub

Public Sub TBFirstRec()
    If rsHeader.State <> adStateOpen Then Exit Sub
    MoveFirst rsHeader
End Sub

Public Sub TBPrevRec()
    If rsHeader.State <> adStateOpen Then Exit Sub
    MovePrevious rsHeader
End Sub

Public Sub TBNextRec()
    If rsHeader.State <> adStateOpen Then Exit Sub
    MoveNext rsHeader
End Sub

Public Sub TBLastRec()
    If rsHeader.State <> adStateOpen Then Exit Sub
    MoveLast rsHeader
End Sub

Public Sub TBNewLine()
End Sub

Public Sub TBDeleteLine()
On Error GoTo ErrorHandler
ErrorHandler:
    If err.Number = -2147217885 Then
        Resume Next
    End If
End Sub

Public Sub TBUndoLineAll()
On Error GoTo ErrorHandler
ErrorHandler:
    If err.Number = -2147217885 Then
        Resume Next
    End If
End Sub

Public Sub TBUndoLineCurrent()
End Sub

Public Sub TBPostRecord()
End Sub

Public Sub TBCancelRecord()
End Sub

Public Sub TBPrintRecord()
End Sub

Sub SetDataSource()
    Set FrmName = Me
    BindControls rsHeader
    Set dtgList.DataSource = rsHeader
End Sub
    
Sub SetDataField()
    With rsHeader
        txtAssetID.DataField = !cAssetNo
        dtbDate.DataField = !dDate
        txtDescription.DataField = !cDesc
        txtCategory.DataField = !cCategory
        txtMarks.DataField = !cMark
        txtLocation.DataField = !cLocation
        txtAcctNo.DataField = !cAcctNo
        txtDepAcctNo.DataField = !cDepreAcct
        txtExpAcctNo.DataField = !cExpAcct
        txtParentAsset.DataField = !cGroupCode
        txtDepartment.DataField = !cDepartment
        txtLife.DataField = !nLife
        txtScrap.DataField = !nScrap
        txtTotal.DataField = !nValue
        txtMonthlyDep.DataField = !nDepre
        txtTotalDep.DataField = !nLastDepre
        txtBook.DataField = !nBook
        txtRemarks.DataField = "cRemarks"
        
        txtType.DataField = !cType
        txtEmpCode.DataField = !cEmpCode
        dtbExpiry.DataField = !dExpiry
        
        txtVehicleType.DataField = !cVehicleType
        txtVehicleMake.DataField = !cVehicleMake
        txtVehicleModel.DataField = !cVehicleModel
        txtVehicleDesc.DataField = !cVehicleDesc
        txtVehiclePlateNo.DataField = !cVehiclePlateNo
        dtbVehicleExpiry.DataField = !dVehicleExpiry
        txtVehicleEmpCode.DataField = !cVehicleEmpCode
        txtVehicleMaintType.DataField = !cVehicleMaintType
        dtbVehicleMaintDate.DataField = !dVehicleMaintDate
        txtVehicleMaintPeriod.DataField = !nVehicleMaintPeriod
        txtVehicleMaintLR.DataField = !nVehicleMaintLR
        
        txtEQBrand.DataField = !cEQBrand
        txtEQColor.DataField = !cEQColor
        txtEQSize.DataField = !cEQSize
        txtEQModel.DataField = !cEQModel
        txtVehicleInsurance.DataField = !cVehicleInsurance
        
        txtVesselNo.DataField = !cVesselNo
        txtVesselName.DataField = !cVesselName
        txtVesselEngine.DataField = !cVesselEngine
        
        'code added dave
        dtbDepreciationDate.DataField = !dDepDate
        dtbDisposalDate.DataField = !dDisposalDate
        chkAmortized.DataField = !lAmortisized
        chkDisposed.DataField = !lDisposed
        '------------
    End With
End Sub

Private Sub iPhoto_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
    If Mode <> AddNewEdit Then Exit Sub
    If Button = 2 Then
        PopupMenu ITGLedgerMain.mnuImage
    End If
End Sub

Private Sub iPhoto_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
    If Mode = AddNewEdit Then
        iPhoto.ToolTipText = "Right click to add/remove image"
    Else
        iPhoto.ToolTipText = ""
    End If
End Sub

Private Sub optVehicleMaintDate_Click()
    If Mode <> AddNewEdit Then Exit Sub
    cboVehicleMaintType.Text = "by Date"
End Sub

Private Sub optVehicleMaintLR_Click()
    If Mode <> AddNewEdit Then Exit Sub
    cboVehicleMaintType.Text = "by Last Repair"
End Sub

Private Sub optVehicleMaintPeriod_Click()
    If Mode <> AddNewEdit Then Exit Sub
    cboVehicleMaintType.Text = "by Period"
End Sub

Private Sub rsHeader_MoveComplete(ByVal adReason As ADODB.EventReasonEnum, ByVal pError As ADODB.Error, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset)
On Error GoTo ErrorHandler
    
    If Not (rsHeader.EOF) Or Not (rsHeader.BOF) Then
        lblHeader = rsHeader!cAssetNo & " - " & rsHeader!cDesc & ""
        lblDetails = rsHeader!cCategory & ""
        sbRS.Panels(1) = "Record: " & IIf((rsHeader.AbsolutePosition = -2), "0", rsHeader.AbsolutePosition) & "/" & rsHeader.RecordCount
        
        If rsHeader.Status <> adRecNew Then
            txtAssetID.Locked = True
        Else
            txtAssetID.Locked = False
        End If
        
        If Mode = AddNewEdit Then
            Select Case rsHeader.Status
                Case adRecNew
                    sbRS.Panels(2) = "New"
                Case adRecModified
                    sbRS.Panels(2) = "Modified"
                Case Else
                    sbRS.Panels(2) = ""
            End Select
        Else: sbRS.Panels(2) = ""
            
            If Trim(rsHeader!cType) = "Equipment" Then
                SSTab2.ActiveTab = 0
            ElseIf Trim(rsHeader!cType) = "Vehicle" Then
                SSTab2.ActiveTab = 1
            ElseIf Trim(rsHeader!cType) = "Vessel" Then
                SSTab2.ActiveTab = 2
            End If
            '----------------
        End If
    Else
        lblHeader = "Asset ID - Description"
        lblDetails = "Category"
        sbRS.Panels(1) = "Record: 0/0"
        sbRS.Panels(2) = ""
        txtAssetID.Locked = False
    End If
    
ErrorHandler:
    If err.Number = -2147217885 Then
        Resume Next
    End If
    
End Sub

Private Sub Timer1_Timer()
    If Mode = AddNewEdit Then
        SSTab1.TabEnabled(1) = False
    Else: SSTab1.TabEnabled(1) = True
    End If
End Sub

Private Sub txtAcctNo_LostFocus()
    If Mode <> AddNewEdit Then Exit Sub
    If Trim(txtAcctDesc) = "" And Trim(txtAcctNo) <> "" Then cmdPickAcct_Click
End Sub

Private Sub txtAssetID_LostFocus()
    If Mode = AddNewEdit Then
        If Trim(txtAssetID) = "" Then
            MsgBox "Empty primary input.", vbInformation, msgTtl
            If FrmName.Name <> Me.Name Then PreviousTab frmComUnionMenuTab
            txtAssetID.SetFocus
        Else
            If rsHeader.Status <> adRecNew Then Exit Sub
            txtAssetID = Trim(txtAssetID)
            If IDExisting(rsHeader, "cAssetNo", "ASSET", Trim(rsHeader!cAssetNo)) Then
                MsgBox "Asset ID already exists.", vbInformation, msgTtl
                If FrmName.Name <> Me.Name Then PreviousTab frmComUnionMenuTab
                txtAssetID.SetFocus
            End If
        End If
    End If
End Sub

Private Sub txtAcctNo_Change()
    txtAcctDesc = ""
    txtAcctDesc = GetValueFrTable("cTitle", "ACCOUNT", "cAcctNo = '" & Trim(txtAcctNo) & "'")
End Sub

Function MandatoryOK() As Boolean
    
    MandatoryOK = True
    
    If Trim(txtAssetID) = "" Then
        MandatoryOK = False
        MsgBox "Field 'Asset ID' is mandatory. Null value is not allowed.", vbInformation, msgTtl
        txtAssetID.SetFocus
        Exit Function
    End If
    
    If rsHeader.Status = adRecNew Then
        If IDExisting(rsHeader, "cAssetNo", "ASSET", Trim(rsHeader!cAssetNo)) Then
            MandatoryOK = False
            MsgBox "Asset ID already exists.", vbInformation, msgTtl
            txtAssetID.SetFocus
            Exit Function
        End If
    End If
    
    If Trim(txtType) = "" Then
        MandatoryOK = False
        MsgBox "Field 'Asset Type' is mandatory. Null value is not allowed", vbInformation, msgTtl
        cboType.SetFocus
        Exit Function
    ElseIf Trim(txtDescription) = "" Then
        MandatoryOK = False
        MsgBox "Field 'Asset Description' is mandatory. Null value is not allowed", vbInformation, msgTtl
        txtDescription.SetFocus
        Exit Function
    ElseIf Trim(txtAcctNo) = "" Then
        MandatoryOK = False
        MsgBox "Field 'Account Number' is mandatory. Null value is not allowed", vbInformation, msgTtl
        txtAcctNo.SetFocus
        Exit Function
    End If

End Function

Private Sub GetChild()
End Sub
Private Function GetSearchString() As String
On Error GoTo ErrorHandler
Dim sWhere As String

    GetSearchString = True

    If Trim$(txtAssetID.Text) <> "" Then
        sWhere = sWhere & IIf(Trim$(sWhere) = "", "", " AND ") & " cAssetNo LIKE '" & Trim$(txtAssetID.Text) & "%'"
    End If

    If Trim$(dtbDate.Text) <> "__/__/____" Then
        sWhere = sWhere & IIf(Trim$(sWhere) = "", "", " AND ") & " dDate = '" & Trim$(dtbDate.Text) & "'"
    End If
    
    If Trim$(txtType.Text) <> "" Then
        sWhere = sWhere & IIf(Trim$(sWhere) = "", "", " AND ") & " cType LIKE '" & Trim$(txtType.Text) & "%'"
    End If
    
    If Trim$(txtDescription.Text) <> "" Then
        sWhere = sWhere & IIf(Trim$(sWhere) = "", "", " AND ") & " cDesc LIKE '" & Trim$(txtDescription.Text) & "%'"
    End If
    
    If Trim$(txtCategory.Text) <> "" Then
        sWhere = sWhere & IIf(Trim$(sWhere) = "", "", " AND ") & " cCategory LIKE '" & Trim$(txtCategory.Text) & "%'"
    End If
    
    If Trim$(txtMarks.Text) <> "" Then
        sWhere = sWhere & IIf(Trim$(sWhere) = "", "", " AND ") & " cMark LIKE '" & Trim$(txtMarks.Text) & "%'"
    End If
    
    If Trim(txtEmpCode.Text) <> "" Then
        sWhere = sWhere & IIf(Trim$(sWhere) = "", "", " AND ") & " cEmpCode LIKE '" & Trim$(txtEmpCode.Text) & "%'"
    End If
    
    If Trim(txtAcctNo.Text) <> "" Then
        sWhere = sWhere & IIf(Trim$(sWhere) = "", "", " AND ") & " cAcctNo LIKE '" & Trim$(txtAcctNo.Text) & "%'"
    End If
    
    If Trim(txtDepAcctNo.Text) <> "" Then
        sWhere = sWhere & IIf(Trim$(sWhere) = "", "", " AND ") & " cDepreAcct LIKE '" & Trim$(txtDepAcctNo.Text) & "%'"
    End If
    
    If Trim(txtExpAcctNo.Text) <> "" Then
        sWhere = sWhere & IIf(Trim$(sWhere) = "", "", " AND ") & " cExpAcct LIKE '" & Trim$(txtExpAcctNo.Text) & "%'"
    End If
    
    If Trim(txtParentAsset.Text) <> "" Then
        sWhere = sWhere & IIf(Trim$(sWhere) = "", "", " AND ") & " cGroupCode LIKE '" & Trim$(txtParentAsset.Text) & "%'"
    End If

    If Trim(txtEQBrand.Text) <> "" Then
        sWhere = sWhere & IIf(Trim$(sWhere) = "", "", " AND ") & " cEQBrand LIKE '" & Trim$(txtEQBrand.Text) & "%'"
    End If
    
    If Trim(txtEQColor.Text) <> "" Then
        sWhere = sWhere & IIf(Trim$(sWhere) = "", "", " AND ") & " cEQColor LIKE '" & Trim$(txtEQColor.Text) & "%'"
    End If
    
    If Trim(txtEQModel.Text) <> "" Then
        sWhere = sWhere & IIf(Trim$(sWhere) = "", "", " AND ") & " cEQModel LIKE '" & Trim$(txtEQModel.Text) & "%'"
    End If
    
    If Trim(dtbExpiry.Text) <> "__/__/____" Then
        sWhere = sWhere & IIf(Trim$(sWhere) = "", "", " AND ") & " dExpiry LIKE '" & Trim$(dtbExpiry.Text) & "%'"
    End If
    
    If Trim(txtEQModel.Text) <> "" Then
        sWhere = sWhere & IIf(Trim$(sWhere) = "", "", " AND ") & " cEQModel LIKE '" & Trim$(txtEQModel.Text) & "%'"
    End If
    
    If Trim(txtVehicleType.Text) <> "" Then
        sWhere = sWhere & IIf(Trim$(sWhere) = "", "", " AND ") & " cVehicleType LIKE '" & Trim$(txtVehicleType.Text) & "%'"
    End If
    
    If Trim(txtVehiclePlateNo.Text) <> "" Then
        sWhere = sWhere & IIf(Trim$(sWhere) = "", "", " AND ") & " cVehiclePlateNo LIKE '" & Trim$(txtVehiclePlateNo.Text) & "%'"
    End If
    
    If Trim(txtVehicleModel.Text) <> "" Then
        sWhere = sWhere & IIf(Trim$(sWhere) = "", "", " AND ") & " cVehicleModel LIKE '" & Trim$(txtVehicleModel.Text) & "%'"
    End If
    
    If Trim(txtVehicleDesc.Text) <> "" Then
        sWhere = sWhere & IIf(Trim$(sWhere) = "", "", " AND ") & " cVehicleDesc LIKE '" & Trim$(txtVehicleDesc.Text) & "%'"
    End If
    
    If Trim(txtVehicleEmpCode.Text) <> "" Then
        sWhere = sWhere & IIf(Trim$(sWhere) = "", "", " AND ") & " cVehicleEmpCode LIKE '" & Trim$(txtVehicleEmpCode.Text) & "%'"
    End If
    
    If Trim(txtVehicleInsurance.Text) <> "" Then
        sWhere = sWhere & IIf(Trim$(sWhere) = "", "", " AND ") & " cVehicleInsurance LIKE '" & Trim$(txtVehicleInsurance.Text) & "%'"
    End If
    
    If Trim(txtVesselNo.Text) <> "" Then
        sWhere = sWhere & IIf(Trim$(sWhere) = "", "", " AND ") & " cVesselNo LIKE '" & Trim$(txtVesselNo.Text) & "%'"
    End If
    
    If Trim(txtVesselName.Text) <> "" Then
        sWhere = sWhere & IIf(Trim$(sWhere) = "", "", " AND ") & " cVesselName LIKE '" & Trim$(txtVesselName.Text) & "%'"
    End If
    
    If Trim(txtVesselEngine.Text) <> "" Then
        sWhere = sWhere & IIf(Trim$(sWhere) = "", "", " AND ") & " cVesselEngine LIKE '" & Trim$(txtVesselEngine.Text) & "%'"
    End If

    If Trim(txtDepartment.Text) <> "" Then
        sWhere = sWhere & IIf(Trim$(sWhere) = "", "", " AND ") & " cDepartment LIKE '" & Trim$(txtDepartment.Text) & "%'"
    End If
    
    GetSearchString = Trim$(sWhere)

    Exit Function
ErrorHandler:
    GetSearchString = "ERROR"
End Function

Private Sub RSZero()
    lblHeader = "Asset ID - Description"
    lblDetails = "Category"
    sbRS.Panels(1) = "Record: 0/0"
    sbRS.Panels(2) = ""
    
    Set FrmName = Me
    UnbindControls
    TextClearing
    FormLocking True
    
    If rsHeader.State = adStateOpen Then rsHeader.Close
    
    BitEnabled ITGLedgerMain, Me, ITGLedgerMain.tbrMain, lACNew, , , , , , , , , True, , , True
    txtAssetID.Locked = False
    txtAssetID.SetFocus
    Mode = Find
End Sub

Sub SearchObj(lEnable As Boolean)
    dtbDate.Enabled = lEnable
    cboType.Enabled = lEnable
    cmdPickEmpCode.Enabled = lEnable
    cmdPickAcct.Enabled = lEnable
    cmdPickDepAcct.Enabled = lEnable
    cmdPickExpAcct.Enabled = lEnable
    cmdPickAsset.Enabled = lEnable
    dtbExpiry.Enabled = lEnable
    cmdPickVehicleEmpCode.Enabled = lEnable
End Sub

Private Sub txtDepAcctNo_Change()
    txtDepAcctDesc = ""
    txtDepAcctDesc = GetValueFrTable("cTitle", "ACCOUNT", "cAcctNo = '" & Trim(txtDepAcctNo) & "'")
End Sub

Private Sub txtDepAcctNo_LostFocus()
    If Mode <> AddNewEdit Then Exit Sub
    If Trim(txtDepAcctDesc) = "" And Trim(txtDepAcctNo) <> "" Then cmdPickDepAcct_Click
End Sub

Private Sub txtEmpCode_Change()
    txtEmpName = ""
    txtEmpName = GetValueFrTable("cEmpName", "EMPLOYEE", "cEmpCode = '" & Trim(txtEmpCode) & "'")
End Sub

Private Sub txtEmpCode_LostFocus()
    If Mode <> AddNewEdit Then Exit Sub
    If Trim(txtEmpName) = "" And Trim(txtEmpCode) <> "" Then cmdPickEmpCode_Click
End Sub

Private Sub txtExpAcctNo_Change()
    txtExpAcctDesc = ""
    txtExpAcctDesc = GetValueFrTable("cTitle", "ACCOUNT", "cAcctNo = '" & Trim(txtExpAcctNo) & "'")
End Sub

Private Sub txtExpAcctNo_LostFocus()
    If Mode <> AddNewEdit Then Exit Sub
    If Trim(txtExpAcctDesc) = "" And Trim(txtExpAcctNo) <> "" Then cmdPickExpAcct_Click
End Sub

Private Sub txtParentAsset_Change()
    txtParentAssetDesc = ""
    txtParentAssetDesc = GetValueFrTable("cDesc", "ASSET", "cAssetNo = '" & Trim(txtParentAsset) & "'")
End Sub

Private Sub txtParentAsset_LostFocus()
    If Mode <> AddNewEdit Then Exit Sub
    If Trim(txtParentAssetDesc) = "" And Trim(txtParentAsset) <> "" Then cmdPickAsset_Click
End Sub

Private Sub txtRemarks_KeyPress(KeyAscii As Integer)
    If Mode <> AddNewEdit Then Exit Sub
    If KeyAscii = 39 Then KeyAscii = 0 'Apostrophe {'}
    KeyAscii = Asc(UCase(Chr(KeyAscii)))
End Sub

Private Sub txtType_Change()
    If Trim(txtType) <> "" Or txtType <> vbNullString Then
        cboType = Trim(txtType)
    Else
        cboType.ListIndex = -1
    End If
End Sub

Private Sub txtVehicleMaintType_Change()
    If Trim(txtVehicleMaintType) <> "" Or txtVehicleMaintType <> vbNullString Then
        cboVehicleMaintType = Trim(txtVehicleMaintType)
    Else
        cboVehicleMaintType.ListIndex = -1
    End If
End Sub

Private Sub txtVehicleEmpCode_Change()
    txtVehicleEmpName = ""
    txtVehicleEmpName = GetValueFrTable("cEmpName", "EMPLOYEE", "cEmpCode = '" & Trim(txtVehicleEmpCode) & "'")
End Sub

Private Sub txtVehicleEmpCode_LostFocus()
    If Mode <> AddNewEdit Then Exit Sub
    If Trim(txtVehicleEmpName) = "" And Trim(txtVehicleEmpCode) <> "" Then cmdPickVehicleEmpCode_Click
End Sub

Private Sub ClearFAInfo(sType As String)
    If Trim(sType) = "Equipment" Then
        'Vehicle
        txtVehicleType = Empty
        txtVehicleMake = Empty
        txtVehicleModel = Empty
        txtVehicleDesc = Empty
        txtVehiclePlateNo = Empty
        txtVehicleEmpCode = Empty
        dtbVehicleExpiry.Text = "__/__/____"
        txtVehicleMaintType = Empty
        txtVehicleMaintPeriod = Empty
        txtVehicleMaintLR = Empty
        dtbVehicleMaintDate.Text = "__/__/____"
        'Vessel
        txtVesselNo = Empty
        txtVesselName = Empty
        txtVesselEngine = Empty
        'Vehicle
        txtVehicleType.TabStop = False
        txtVehicleMake.TabStop = False
        txtVehicleModel.TabStop = False
        txtVehicleDesc.TabStop = False
        txtVehiclePlateNo.TabStop = False
        txtVehicleEmpCode.TabStop = False
        dtbVehicleExpiry.TabStop = False
        txtVehicleMaintType.TabStop = False
        txtVehicleMaintPeriod.TabStop = False
        txtVehicleMaintLR.TabStop = False
        dtbVehicleMaintDate.TabStop = False
        'Vessel
        txtVesselNo.TabStop = False
        txtVesselName.TabStop = False
        txtVesselEngine.TabStop = False
        'Equipment
        txtCategory.TabStop = True
        txtMarks.TabStop = True
        txtEmpCode.TabStop = True
        txtLocation.TabStop = True
        dtbExpiry.TabStop = True
    ElseIf Trim(sType) = "Vehicle" Then
        'Equipment
        txtCategory = Empty
        txtMarks = Empty
        txtEmpCode = Empty
        txtLocation = Empty
        dtbExpiry.Text = "__/__/____"
        'Vessel
        txtVesselNo = Empty
        txtVesselName = Empty
        txtVesselEngine = Empty
        'Equipment
        txtCategory.TabStop = False
        txtMarks.TabStop = False
        txtEmpCode.TabStop = False
        txtLocation.TabStop = False
        dtbExpiry.TabStop = False
        'Vessel
        txtVesselNo.TabStop = False
        txtVesselName.TabStop = False
        txtVesselEngine.TabStop = False
        'Vehicle
        txtVehicleType.TabStop = True
        txtVehicleMake.TabStop = True
        txtVehicleModel.TabStop = True
        txtVehicleDesc.TabStop = True
        txtVehiclePlateNo.TabStop = True
        txtVehicleEmpCode.TabStop = True
        dtbExpiry.TabStop = True
        txtVehicleMaintType.TabStop = True
        txtVehicleMaintPeriod.TabStop = True
        txtVehicleMaintLR.TabStop = True
        dtbVehicleMaintDate.TabStop = True
    ElseIf Trim(sType) = "Vessel" Then
        'Equipment
        txtCategory = Empty
        txtMarks = Empty
        txtEmpCode = Empty
        txtLocation = Empty
        dtbExpiry.Text = "__/__/____"
       'Vehicle
        txtVehicleType = Empty
        txtVehicleMake = Empty
        txtVehicleModel = Empty
        txtVehicleDesc = Empty
        txtVehiclePlateNo = Empty
        txtVehicleEmpCode = Empty
        dtbVehicleExpiry.Text = "__/__/____"
        txtVehicleMaintType = Empty
        txtVehicleMaintPeriod = Empty
        txtVehicleMaintLR = Empty
        dtbVehicleMaintDate.Text = "__/__/____"
        'Equipment
        txtCategory.TabStop = False
        txtMarks.TabStop = False
        txtEmpCode.TabStop = False
        txtLocation.TabStop = False
        dtbExpiry.TabStop = False
       'Vehicle
        txtVehicleType.TabStop = False
        txtVehicleMake.TabStop = False
        txtVehicleModel.TabStop = False
        txtVehicleDesc.TabStop = False
        txtVehiclePlateNo.TabStop = False
        txtVehicleEmpCode.TabStop = False
        dtbVehicleExpiry.TabStop = False
        txtVehicleMaintType.TabStop = False
        txtVehicleMaintPeriod.TabStop = False
        txtVehicleMaintLR.TabStop = False
        dtbVehicleMaintDate.TabStop = False
        'Vessel
        txtVesselNo.TabStop = True
        txtVesselName.TabStop = True
        txtVesselEngine.TabStop = True
    End If
End Sub

Private Sub EnableFATabs()
    If Trim(cboType) = "Equipment" Then
        SSTab2.ActiveTab = 0
        SSTab2.TabEnabled(0) = True
        SSTab2.TabEnabled(1) = False
        SSTab2.TabEnabled(2) = False
        SSTab2.TabEnabled(3) = False
        SSTab2.TabEnabled(4) = False
    ElseIf Trim(cboType) = "Vehicle" Then
        SSTab2.ActiveTab = 1
        SSTab2.TabEnabled(0) = False
        SSTab2.TabEnabled(1) = True
        SSTab2.TabEnabled(2) = False
        SSTab2.TabEnabled(3) = False
        SSTab2.TabEnabled(4) = False
    ElseIf Trim(cboType) = "Vessel" Then
        SSTab2.ActiveTab = 2
        SSTab2.TabEnabled(0) = False
        SSTab2.TabEnabled(1) = False
        SSTab2.TabEnabled(2) = True
        SSTab2.TabEnabled(3) = True
        SSTab2.TabEnabled(4) = False
    ElseIf Trim(cboType) = "Land Title" Then
        SSTab4.ActiveTab = 0
        SSTab2.TabEnabled(0) = False
        SSTab2.TabEnabled(1) = False
        SSTab2.TabEnabled(2) = False
        SSTab2.TabEnabled(3) = True
        SSTab2.TabEnabled(4) = False
    ElseIf Trim(cboType) = "Others" Then
        SSTab4.ActiveTab = 0
        SSTab2.TabEnabled(0) = False
        SSTab2.TabEnabled(1) = False
        SSTab2.TabEnabled(2) = False
        SSTab2.TabEnabled(3) = False
        SSTab2.TabEnabled(4) = True
    End If
End Sub

Private Sub VehicleOption()
    If Trim(cboVehicleMaintType) = "by Date" Then
        optVehicleMaintDate.Value = True
    ElseIf Trim(cboVehicleMaintType) = "by Period" Then
        optVehicleMaintPeriod.Value = True
    ElseIf Trim(cboVehicleMaintType) = "by Last Repair" Then
        optVehicleMaintLR.Value = True
    End If
End Sub

'Public Sub ShowForm(sTranNo As String)
'    If Mode = Find Then
'
'        OpenNewConnection connHeader
'
'        Set rsHeader = Nothing
'        Set rsHeader = New ADODB.Recordset
'
'        OpenRecordsetWithCN rsHeader, "*", "ASSET", connHeader, "WHERE cAssetNo = '" & Trim(sTranNo) & "'"
'
'        Set FrmName = Me
'        FormLocking True
'
'        If rsHeader.RecordCount = 0 Then
'            FormWaitHide
'            MsgBox "No matching record/s found.", vbInformation, "ComUnion Search"
'            RSZero
'            FormSearch True
'            SearchObj True
'            Mode = Find
'            Exit Sub
'        End If
'            SetDataSource
'            SetDataField
'            txtAssetID.BackColor = &HE0FFFF
'            Mode = Normal
'            oBar.BitEnabled Me, ITGLedgerMain.tbrMain, lACNew, lACEdit, lACDelete, , , , , , , True, True, , True, True
'
'    End If
'End Sub
